<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    body{
        background-color: black;
    }
    .rua{
        font-size: large;

    }
    th{
        color:#FFF;
    }
    td{
        background-image: -webkit-linear-gradient(top,red,yellow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    h1{
        background-image: -webkit-linear-gradient(top,red,orange,yellow,greenyellow,blue,deepskyblue,purple);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .box{
        border-left:1px solid #FFF;
        border-right:1px solid #FFFFFF;
        border-top:1px solid #FFFFFF;
        border-block:1px solid #FFFFFF;
        width: 500px;
    }
    .box2{
        text-align: center;
    }
</style>
<body>
<div class="box rua">
    <h1>The Goods Page</h1>
    <table>
        <div class="box">
        <thead>

        <tr>
            <th>id</th>
            <th>name</th>
            <th>remark</th>
            <th>createdTime</th>
        </tr>

        </thead>
        </div>
        <!--/* 定义表体部分 */-->
        <div class="box">
        <tbody>
        <!--/* th:each 为同行业thymeleaf中定义的迭代标签属性，需要循环创建哪些元素，th:each就写到哪个元素 */-->

        <tr th:each="g:${list}">
            <td th:text="${g.id}">1</td>
            <td th:text="${g.name}">A</td>
            <td th:text="${g.remark}">A</td>
            <td th:text="${#dates.format(g.createdTime,'yyyy-MM-dd HH:mm:ss')}">2077-1-1</td>
            <td><a th:href="@{doDelete(id=${g.id})}">删除</a></td>
            <td><a th:href="@{doFindById(id=${g.id})}">修改</a></td>
        </tr>
<tr>

</tr>
        </tbody>
        </div>
    </table>
    <div class="box2"> <a href="turn" target="rightFrame"><button>新增信息</button></a></div>
</div>
</body>
</html>
